import React from "react";

const ListItem = (props) => {
  const { v, onClick, prevLeft, count } = props;
  return (
    <dl className="list-item" onClick={onClick}>
      {prevLeft}
      <dt>
        <img src={v.image} alt="" />
      </dt>
      <dd>
        <h3 className="title">{v.title}</h3>
        <div className="desc">{count || v.desc}</div>
        <div className="btm">
          <div className="left">
            <span className="price">¥{v.price}</span>
            <span className="oldPric">
              <s>{v.oldPrice}</s>
            </span>
          </div>
          <span>销量：{v.sell}</span>
        </div>
      </dd>
    </dl>
  );
};

export default ListItem;
